package com.huike.clues.service.impl;

import com.huike.clues.domain.TbRulePool;
import com.huike.clues.mapper.TbRulePoolMapper;
import com.huike.clues.service.ITbRulePoolService;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;

/**
 * @author EthanRuins
 * @date 2023/7/13
 * @apiNote
 */
@Service
@AllArgsConstructor
public class TbRulePoolServiceImpl implements ITbRulePoolService {
    private TbRulePoolMapper rulePoolMapper;

    @Override
    public TbRulePool getByType(String type) {
        return rulePoolMapper.getRule(type);
    }

    @Override
    public int update(TbRulePool rulePool) {
        return rulePoolMapper.update(rulePool);
    }
}
